# total_level = int(input("请输入金字塔的层数："))
#
# for i in range(total_level):
#     for j in range(total_level - i - 1):
#         print(" ", end="")
#     for j in range(2 * i + 1):
#         if j == 0 or j == 2 * i or i == total_level - 1:
#             print("*", end="")
#         else:
#             print(" ", end="")
#     print("")

total_level = int(input("请输入菱形的层数："))

for i in range(0, total_level):
    for j in range(0, total_level - i - 1):
        print(" ", end="")
    for j in range(0, 2 * i + 1):
        if j == 0 or j == 2 * i:
            print("*", end="")
        else:
            print(" ", end="")
    print("")
for i in range(0, total_level - 1):
    for j in range(0, i + 1):
        print(" ", end="")
    for j in range(0, 2 * (total_level - i) - 3):
        if j == 0 or j == 2 * (total_level - i) - 4:
            print("*", end="")
        else:
            print(" ", end="")
    print("")
